package com.patterns.builder.carModel;

import com.patterns.builder.carModel.director.Director;

/**
 * Created by Xiao Yiyun on 2017/4/21.
 */
public class Client {
    public static void main(String[] args) {
        Director director = new Director();
        //需要3辆1类型奔驰车
        for (int i=0; i<3; i++) {
            director.getBenzModel1().run();
        }
        //需要3辆1类型宝马车
        for (int i=0; i<3; i++) {
            director.getBMWModel1().run();
        }
    }
}
